package com.aynu.webshop.web.dao;

import java.util.List;

import com.aynu.webshop.core.generic.GenericDao;
import com.aynu.webshop.web.model.Goods;

public interface GoodsMapper extends GenericDao<Goods, Integer> {
    int deleteByPrimaryKey(Integer gId);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer gId);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);
    
    List<Goods> findAll();
    
    List<Goods> findListByCatcid(Integer catcid);
    
    int findByCatcid(Integer catcid);
}